<template>
	<view>
		<view ref="capture1" v-for="(item,index) in imgs" :key="index">
				<!-- <view style="text-align: center;font-size: 15px;">{{item.title}}</view> -->
				<image class="aaaaimg" :src="item.wzfm" mode="scaleToFill"></image>
				<view style="text-align: center;font-size: 15px;">{{item.author}}</view>
		</view>
	</view>
</template>
<script>
	export default {
		components: {
			
		},
		data() {
			return {
				title: '网上看校',
				imgs: []
			}
		},
		async onLoad() {
			// console.log('xxxx')
		await this.newsListImg()
		},
		methods: {
			handleClick(index) {
				// for (let s of this.imgs) {
				// 	if(index === s.id){
				// 		uni.navigateTo({
				// 			url: '../details/details?more=' + s.more + '&title=' + s.title
				// 		})
				// 	}
				// }
			},
			newsListImg() {
				return vk.callFunction({
				  url: 'client/jp/pub/jpapi.getxrldList',
				  title:'请求中...',
				  data:{}
				}).then((data) => {
				  this.imgs = data.list
				}).catch((err) => {});

			}
		}
	}
</script>

<style>
	.aaaaimg {  
	    display: block;  
		padding: 5upx;
	    margin-left: auto;  
	    margin-right: auto;  
		width: 100%;
		height: 280px;
	}
</style>
